From: Jasper St. Pierre Date: Sun, 1 Sep 2013 02:33:03 +0000 (-0400) Subject: network: Adapt to the new NetworkManager API names X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3561 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1d26161d2388e34a6fdcfb52e43e1ebb3ac5a13f;p=gnome-shell.git network: Adapt to the new NetworkManager API names "physical connection" has been replaced with "primary connection" --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 79cb71155..879d7bfa1 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1286,7 +1286,7 @@ const NMApplet = new Lang.Class({ this._client.connect('notify::manager-running', Lang.bind(this, this._syncNMState)); this._client.connect('notify::networking-enabled', Lang.bind(this, this._syncNMState)); this._client.connect('notify::state', Lang.bind(this, this._syncNMState)); - this._client.connect('notify::physical-connection', Lang.bind(this, this._syncMainConnection)); + this._client.connect('notify::primary-connection', Lang.bind(this, this._syncMainConnection)); this._client.connect('notify::active-connections', Lang.bind(this, this._syncVPNConnections)); this._client.connect('device-added', Lang.bind(this, this._deviceAdded)); this._client.connect('device-removed', Lang.bind(this, this._deviceRemoved)); @@ -1430,7 +1430,7 @@ const NMApplet = new Lang.Class({ _getMainConnection: function() { let connection; - connection = this._client.get_physical_connection(); + connection = this._client.get_primary_connection(); if (connection) { this._ensureActiveConnectionProps(connection); return connection;